// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入mui的样式及字体图标
import '@/lib/mui/css/mui.css'
import '@/lib/mui/css/icons-extra.css'
import moment from 'moment'
Vue.config.productionTip = false


// 引入mintui并使用
import Mint from 'mint-ui'
import'mint-ui/lib/style.css'
Vue.use(Mint);

// 集成vuex
import store from './store/store.js'

// 定义时间格式化全局过滤器
Vue.filter('dateFormat', function (dateStr, pattern = "YYYY-MM-DD HH:mm:ss") {
  return moment(dateStr).format(pattern)
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})

